Skip to content

Instantly share code, notes, and snippets.

@ayashiiiyo
ayashiiiyo / ytmusic.mjs
Last active December 2, 2026 05:31
YouTube Music Complete Scraper & Downloader (WhatsApp Auto-MP3 Support, Optional Cookies, Fallback Direct Query-to-Download, M4A/MP3 Streams, HD Covers, Musixmatch Lyrics, Radio Queue, Albums, Artists, Playlists, Top Artists Charts, Explore) - Node.js ESM
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
import path from 'node:path';
import { spawn } from 'node:child_process';
const BASE_URL = 'https://music.youtube.com';
const COOKIE_PATH = new URL('ytmusic.txt', import.meta.url).pathname;
const FILTER_PARAMS = {
songs: 'EgWKAQIIAWoSEAUQAxAJEAoQERAQEAQQDhAV',
videos: 'EgWKAQIQAWoSEAUQAxAJEAoQERAQEAQQDhAV',
@Co0olCat
Co0olCat / day-001.md
Created December 2, 2026 05:28
The Gradient Doctor’s Laboratory | Day 001 — The Patient Is Trainable. The Librarian Is Still Not Listening. | v1.0.0

The Gradient Doctor’s Laboratory

Day 001: The Patient Is Trainable. The Librarian Is Still Not Listening.

QSA indexer supervision and a tiny training pilot

Stage: L0 | Architecture and training feasibility

Status: Preliminary. All computational experiments reported here were conducted within a deliberately bounded environment: one CPU thread, FP32 precision, no GPU and no external training data.

@Co0olCat
Co0olCat / day-000.md
Created December 1, 2026 10:58
The Gradient Doctor’s Laboratory | Day 000 — Why Build Ludus? | v1.0.0

The Gradient Doctor’s Laboratory

Day 000: Why Build Ludus?

Does a machine need to know everything to be intelligent?

And does everything it knows need to occupy its memory all the time?

We suspect not.

// ============================================================================
// CASA TROPICAL — a sunlit tropical-modernist room, recreated from one photograph
// ============================================================================
// Pure GLSL, Shadertoy-compatible (mainImage / iTime / iResolution), one file, no textures,
// no images, no includes. Every surface is an equation:
// * raymarched SDF furniture + objects (sideboard and its vessels, travertine table, lamp,
// benches) inside an analytic room shell (floor, rug, wood wall, slatted ceiling, glass wall,
// sheer curtains), lit by a sun filtered through a fitted leaf-canopy cookie;
// * fitted 2D parametric prop layers on depth-tested billboards (bird-of-paradise, planter,
// chair, bench, herb): Bezier-midrib leaves, tapered petiole tubes, quadratic-Bezier panels,
@xikhar
xikhar / metroidvania-prompt.md
Created December 1, 2026 22:06
metroidvania-prompt

Build a high quality complete pixel style metroidvania game in the browser.

Platform and constraints: It should run in the browser. Graphics drawn using webgl. Gameplay engine built on top of webgl as well, no external libraries. you need to invent all the code to make and run the game great.

First part: Research. It needs to be a Metroidvania, so research on how they look like and what are the gameplay mechanisms, camera movements, world design, Techniques to build it. Webgl things to understand. study the existing games for some references. Read ENGINE section below for what more to research on that.

Second part: reference & Design. Use PIXELGAME.jpg in main-ref folder as the source of truth. Use available models on FAL MCP to generate more reference images as you need, or any video that you need. The first part of the process is to explore reference ideas and have a concrete plan of what to build, along with what it should look like. And the entire theme should be consistent across the game. generate mo

Act as an expert security researcher specializing in code auditing. You are tasked with conducting a thorough security audit of the provided codebase.

Objective: Identify, prioritize, and propose remediation strategies for high-priority security vulnerabilities that could lead to system compromise, data breaches, unauthorized access, denial of service, or other significant security incidents. Assume a realistic threat model appropriate for the type of application (if known, otherwise assume a web application handling sensitive data).


Phase 0: Scoping & Context Gathering (Crucial First Step)

  • Clarify Scope: Before analysis, please ask any necessary clarifying questions about:
  • The programming language(s) and framework(s) used.
@CalfordMath
CalfordMath / Sudoku Solver - Excel Formulas Only, (No VBA)
Last active December 2, 2026 04:58
A Lambda Function with nested recursion that receives a 9x9 puzzle range (i.e. B2:J10) and outputs a 9x9 spilled range with the completed puzzle. No VBA. Just formulas. No specific cell references beyond the input range. It takes about 3 minutes and 3 seconds to solve the world's current hardest sudoku puzzle on an average fast computer. It inco…
Sudoku = LAMBDA(Puzzle,
LET(
Options, MAKEARRAY(27, 27, LAMBDA(r, c, MOD(c - 1, 3) + 1 + 3 * MOD(r - 1, 3))),
numgrid, SEQUENCE(9, 9, 1),
UpdatedPuzzle, LET(
ApplyLogic, LAMBDA(ApplyLogic, Puzzle, Options,
LET(
Candidates, MAKEARRAY(
27,
27,
@karpathy
karpathy / microgpt.py
Last active December 2, 2026 04:50
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@TheAirBlow
TheAirBlow / readme.md
Last active December 2, 2026 04:48
Samsung Multi-Disabler by hand on Linux

Samsung Multi-Disabler by hand

This tutorial is made for Linux users (it may not work on WSL).
It is instuction how to to everything Samsung Multi-Disabler does by hand.
It is handy if you want to make installing TWRP easier (no recovery override),
or just to make a playground for toying with Android.
Package android-tools should be installed, and your device should be connected.
Also, this is only for Samsung, do not try this on any other device.

Step 1: Prepare

Convert sparse image to raw ext4 image, create mount point directories, mount raw ext4 images.